﻿<%@ Page Language="C#" %>
<%@ Import Namespace="RssEasy.Core" %>
<%@ Import Namespace="LocalDAL" %>
<%
    OrderList entity = new OrderList();
    entity.request();

    if (entity.select().where("id=@id and state=0", entity["orderid"]).get_first_rows())
    {
        if (!string.IsNullOrWhiteSpace(entity["json"]))
        {
            entity.parsekeyvalue(entity["json"]);
        }

        OrderList update = new OrderList();
        update.keyvalue("state", 1);
        update.update().where("id=@id and state=0", entity["orderid"]).submit();

        entity.payadapter();
    }

%>